package com.angel.crowd.service;

import com.angel.crowd.entity.Admin;
import com.angel.crowd.entity.Role;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AdminService {

	void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    void saveAdmin(Admin admin);

	List<Admin> getAll();

	Admin getAdminByLoginAcct(String loginAcct, String userPswd);

	PageInfo<Admin> getPageInfo(String keyword, Integer pageNum, Integer pageSize);

	void remove(Integer adminId);

	Admin getAdminById(Integer adminId);

	void update(Admin admin);

	Admin getAdminByLoginAcct(String username);

}
